<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>IE9 axios cors 测试</title>
    <script src="https://unpkg.com/es5-shim@4.5.9"></script>
    <script src="https://unpkg.com/es6-promise"></script>
    <!-- <script src="https://rsvpjs-builds.s3.amazonaws.com/rsvp-latest.min.js"></script> -->
    <!-- <script src="https://unpkg.com/babel-polyfill@6.26.0"></script> -->
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
    <button id="test">发送请求</button>
    <pre id="res">

    </pre>

    <script>
        axios.get('https://easy-mock.com/mock/595b562c9adc231f3570a42c/api/table/list')
        .then(function (response) {
            console.log(response);
            document.getElementById("res").innerHTML = "响应结果:"+ JSON.stringify(response.data);
        })
        .catch(function (error) {
            console.log(error);
        });
    </script>

</body>

</html>